package com.xiaoyu.lib_av.state

import com.xiaoyu.lib_av.manager.CallManager

object CallStateManager : Action {
    val isNotIdle: Boolean
        get() = isInQueue || CallManager.instance.isCalling

    var isInQueue = false

    override fun queue() {
        synchronized(this) {
            isInQueue = true
        }
    }

    override fun dequeue() {
        synchronized(this) {
            isInQueue = false
        }
    }
}